﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace backend.Models;

public partial class Profession
{
    [Key]
    [Column("P_ID")]
    [StringLength(8)]
    [Unicode(false)]
    public string PId { get; set; } = null!;

    [Column("P_Name")]
    [StringLength(16)]
    public string PName { get; set; } = null!;

    [InverseProperty("PIdNavigation")]
    public virtual ICollection<Failure> Failures { get; set; } = new List<Failure>();
}
